#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
	int n;
	for (n = 1;n <= 100;n++) {
		if (n % 3 == 0)
			printf("%d ", n);
	}
}